//
//  Tools.h
//  BlueToothPeripheral
//
//  Created by US bike on 2017/8/7.
//  Copyright © 2017年 US bike. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

#define SERVICE_UUID @"CCC1"
#define CHARACTERISTIC_UUID_READ @"DDD0" //读
#define CHARACTERISTIC_UUID_SUBSCRIPT @"DDD1" //订阅
#define CHARACTERISTIC_UUID_WRITE @"DDD2" //写
#define BLUETOOTH_NAME @"iPhone"//蓝牙名称

@interface Tools : NSObject

#pragma mark - 日志方法
+ (void) debugLog:(NSString *) logStr AndTextView:(UITextView *) textView;


//异或操作
+ (Byte) xorByteA:(Byte) a AndByteB:(Byte) b;

+ (Byte) xorsBytes:(Byte) byte, ...NS_REQUIRES_NIL_TERMINATION;



@end
